<template>
  <div class="cont">
    <div class="const-lf" @click="toConsult">
      <img src="https://resource.chunyu.mobi/@/media/2024_05_17_84e62a70c2a2a57c49fcfd9cf27fb844.png" alt=""
        width="100%" />
    </div>
    <div class="const-rg">
      <div class="const-rg-t" @click="toWen">
        <img src="https://staff.chunyu.mobi/@/media/images/2022/07/13/652b/3995795e1cca_w519_h210_.png" alt=""
          width="100%" />
      </div>
      <div class="const-rg-b">
        <img src="https://staff.chunyu.mobi/@/media/images/2023/08/30/d41e/c102cb5b32d9_w519_h210_.png" alt=""
          width="100%" @click="goShop" />
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { getjigou } from '../../../api/http'
import { useRouter } from 'vue-router'
const router = useRouter()
getjigou().then(res => { })
// webscoket聊天室
const toConsult = () => {
  router.push('/msgNotify')
}
//跳转商城
const goShop = () => {
  router.push('/shop')
}
// 问医生
const toWen = () => {
  router.push('/wDoctor')
}
</script>

<style lang="scss" scoped>
.cont {
  width: 100%;
  height: 141px;
  margin-top: 5px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  // background: white;
  .const-lf {
    padding: 10px;
    width: 185px;
    height: 100%;
    background: white;

    h5 {
      background: white;
    }

    .zi {
      background: white;
      margin-top: 5px;
      font-size: 12px;
      color: #ccc;
    }
  }

  .const-rg {
    width: 174px;
    height: 100%;
    margin-left: 5px;

    div {
      height: 50%;
      background: white;
    }

    .zi {
      font-size: 12px;
      color: #ccc;
    }
  }
}
</style>
